window.showLoading=function(){
    var loadingText='<div id="loading_box" style="    z-index: 9999;position: fixed;left:0;top:0;width:100vw;height:100vh;">\n' +
        '        <div style="width:4rem;height:4rem;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display: inline-block">\n' +
        '        <img style="width:100%;height:100%;animation: loading_box 2s linear infinite" src="/img/loading_icon_2.png">\n' +
        '        </div>\n' +
        '        </div>';
    $("body").append(loadingText);
}

window.closeLoading=function(){
    if($("#loading_box").length>0){
        $("#loading_box").remove();
    }

}

